package common.components.smileyenhanced
{
	import flash.events.MouseEvent;
	import mx.controls.Image;
	import mx.containers.HBox;
		
	public class SmileyDeskClass extends HBox
	{
		public var textTarget:ISmileyTextEditable;
		
		public function onClick(evt:MouseEvent):void
		{
			var id:String = Image(evt.target).id;
			
			switch (id)
			{
				case 'smile':
					this.textTarget.addSmileyText(":)");
					break;
				case 'veryhappy':
					this.textTarget.addSmileyText(":D");
					break;
				case 'sad':
					this.textTarget.addSmileyText(":(");
					break;
				case 'crying':
					this.textTarget.addSmileyText(";(");
					break;
				case 'shocked':
					this.textTarget.addSmileyText(":O");
					break;
				case 'tongue':
					this.textTarget.addSmileyText(":p");
					break;
				case 'wink':
					this.textTarget.addSmileyText(";)");
					break;
				case 'bored':
					this.textTarget.addSmileyText(":|");
					break;
				case 'confused':
					this.textTarget.addSmileyText(":s");
					break;
	
			}
		}
	}
}